﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using NextInventory.Common;

namespace NextInventory.Model.User
{
    public class ChangePasswordModel : BaseViewModel
    {
        public int ID { get; set; }
        public string Username { get; set; }

        [Required(ErrorMessage = "Old password is required")]
        [Display(Name = "Current Password:")]
        [DataType(DataType.Password)]
        public string OldPassword { get; set; }

        [Required(ErrorMessage = "Current password is required")]
        [Display(Name = "New password:")]
        [DataType(DataType.Password)]
        public string NewPassword { get; set; }

        [Required(ErrorMessage = "Confirm password is required")]
        [Display(Name = "Confirm password:")]
        [DataType(DataType.Password)]
        [Compare("NewPassword", ErrorMessage = "The password and confirmation password do not match.")]
        public string ConfirmPassword { get; set; }
    }
}
